<script setup lang="ts">
interface Props {
  value: string | number | undefined;
}
defineProps<Props>();
</script>

<template>
  <div class="detail">
    <template v-if="value">{{ value }}</template>
    <span v-else class="empty">暂无数据</span>
  </div>
</template>

<style scoped lang="scss">
.detail {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 4px 4px 4px 4px;
  padding: 0 12px;
  .empty {
    color: #b0b0b0;
    font-size: 22px;
  }
}
</style>
